package com.solocredit.finance.data.dev.take

import android.content.Context
import com.google.gson.Gson
import com.solocredit.finance.data.dev.utils.FlexiMolaNetUtil
import com.solocredit.finance.data.dev.utils.gzipString

/**
 * Wifi
 */
class TakeFlexiMolaNet(val context: Context) {

    fun takeFlexiMolaNet(): String? {
        return try {
            val data = hashMapOf<String, Any>().apply {
                put("currentWifi", FlexiMolaNetUtil.cwfnow(context))
                put("configuredWifi", "")
                put("wifiCount", "")
            }
            Gson().toJson(data).trim().gzipString()

        } catch (e: Exception) {
            null
        }
    }
}